package com.hos.service;

import com.hos.dao.MessageMapper;
import com.hos.pojo.Message;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MessageService {
    @Resource
    MessageMapper messageMapper;

    public List<Message> select(){
        return messageMapper.select();
    }

    public void insert(Message entity){
        messageMapper.insert(entity);
    }

    public void delete(Integer[] ids){
        messageMapper.delete(ids);
    }
}
